projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b998b6a
)
gbfile.c: Fix MSVC signed/unsigned mismatch warning.
author
oliskoli
<oliskoli>
Fri, 22 Aug 2008 21:37:44 +0000
(21:37 +0000)
committer
oliskoli
<oliskoli>
Fri, 22 Aug 2008 21:37:44 +0000
(21:37 +0000)
gbfile.c
patch
|
blob
|
history
diff --git
a/gbfile.c
b/gbfile.c
index 925edd8489b56a839144121e1e2d28cd277c0edd..678093d8481dcc49f9639b570eab29dbea58289f 100644
(file)
--- a/
gbfile.c
+++ b/
gbfile.c
@@
-256,7
+256,7
@@
gbfread(void *buf, const gbsize_t size, const gbsize_t members, gbfile *file)
result += gzread(file->handle.gz, target, count);
/* Check for an incomplete READ */
- if ((members == 1) && (size > 1) && (result > 0) && (result < size))
+ if ((members == 1) && (size > 1) && (result > 0) && (result <
(int)
size))
fatal("%s: Unexpected end of files (EOF)!\n", file->module);
result /= size;